package com.bysj.entity;

public class Goods {
    private int id;
    private String description;
    private int userid;
    private String price;
    private String imgurl;
    private String contact;
    private User user;

    public Goods() {
    }

    public Goods(int id, String description, int userid, String price, String imgurl,String contact) {
        this.id = id;
        this.description = description;
        this.userid = userid;
        this.price = price;
        this.imgurl = imgurl;
        this.contact = contact;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", description='" + description + '\'' +
                ", userid=" + userid +
                ", price='" + price + '\'' +
                ", imgurl='" + imgurl + '\'' +
                ", contact='" + contact + '\'' +
                '}';
    }
}
